//
//  ViewController.m
//  MyButtonDemo
//
//  Created by lemo on 2017/11/20.
//  Copyright © 2017年 lemo. All rights reserved.
//

#import "ViewController.h"
#import "LHXButton.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    LHXButton *button = [LHXButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(100, 100, 40, 100);
    button.btnType = LHXButtonImageTypeOnBelow;
    button.spacing = 10;
    button.layer.borderWidth = 1;
    button.layer.borderColor = [[UIColor blackColor] CGColor];
    [button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    [button setTitle:@"点击" forState:UIControlStateNormal];
    [button setImage:[UIImage imageNamed:@"new_bonze_person_setting"] forState:UIControlStateNormal];
    [self.view addSubview:button];
}


@end
